/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package de.sisoft.timera.dao;

import java.util.List;

import de.sisoft.timera.entity.Employee;
import de.sisoft.timera.entity.Project;
import de.sisoft.timera.exception.UserNotFoundException;

/**
 *
 * @author Men@Work
 */
public interface IUserDao {

    public List<Employee> getAllUsers();

    public Employee getUserById(long id) throws UserNotFoundException;

    public Employee getUserByUsername(String name) throws UserNotFoundException;

    public void addUser(Employee user);

    public void updateUser(Employee user);

    public void deleteUser(Employee user);

    public List<Project> getProjectsForEmployee(Employee employee);
}
